﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using CoreData;
using Services;
using Helper;
namespace ActionServices
{

    public interface ITempStudentDepositActionService : BaseActionService
    {
        long Save(object _model, ref string mess);
        IList<CoreData.TempStudentDeposit> GetListByLINQ(Func<CoreData.TempStudentDeposit, Boolean> _where);
        CoreData.TempStudentDeposit GetOneByLINQ(Func<CoreData.TempStudentDeposit, Boolean> _where);
        bool Delete(object _model);
        TempStudentDeposit GetByTempStudentIdAndBranch(long tempStudentId, long branchId);
    }

    public partial class TempStudentDepositActionService : ITempStudentDepositActionService
    {
        TempStudentDepositService Service;

        public TempStudentDepositActionService()
        {
            Service = new TempStudentDepositService();
        }

        #region Main Method

        public virtual long Save(object _model, ref string mess)
        {
            return Service.Save(_model, ref mess);
        }

        public virtual object GetByID(long _id)
        {
            return Service.GetByID(_id);
        }

        public virtual object GetList()
        {
            return Service.GetList();
        }

        public virtual IList<CoreData.TempStudentDeposit> GetListByLINQ(Func<CoreData.TempStudentDeposit, Boolean> _where)
        {
            return Service.GetListByLINQ(_where);
        }

        public virtual CoreData.TempStudentDeposit GetOneByLINQ(Func<CoreData.TempStudentDeposit, Boolean> _where)
        {
            return Service.GetOneByLINQ(_where);
        }

        public virtual object GetList(string _searchstring)
        {
            return Service.GetList(_searchstring);
        }

        public virtual bool Delete(object _model)
        {
            return Service.Delete(_model);
        }

        #endregion


        #region Other Method

        public virtual TempStudentDeposit GetByTempStudentIdAndBranch(long tempStudentId, long branchId)
        {
            return Service.GetByTempStudentIdAndBranch(tempStudentId, branchId);
        }
        #endregion

    }

}
